var generalLedger = require('../subsidiaryLedger/main');
var balanceAmt = require('../balanceAmt/main');
var columns = require('./columns');

return extend(generalLedger, {
    target:'#subsidiary-ledger-amt',
    path:'subsidiary-ledger-amt',
    data:{
        
    },
    template:{
        left:renders({
            <%include 'date'%>
            <%include 'subject'%>
        }),
        right:renders({
            <%include 'print'%>
            <%include 'exports'%>
        }),
        mode:balanceAmt.template.mode
    },
    grid:{
        columns:columns(),
        onRender:balanceAmt.grid.onRender
    },
    setTitle:balanceAmt.setTitle,
    renderCol:function(){
        var data = this.getQuery();
        this.datagrid.option('columns', columns(data.mode, data.showYear));
        this._query();
    }
})